import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';


@Component({
  selector: 'page-password',
  templateUrl: 'changePwd.html',
})
export class ChangePwdPage {

  type:any;
  title:string;
  constructor(public navCtrl: NavController, public navParams: NavParams) {
    let obj = navParams.get("key");
    this.type = obj;
    if(obj == "login"){
      this.title = "修改登录密码";
    }else {
      this.title = "设置提款密码";
    }
  }

}
